﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace WebUtility
{
    public class BasePage : Page
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            Page.Header.Controls.AddAt(0, new LiteralControl("<script type='text/javascript'> var $RootPath = '" + ResolveUrl("~/") + "'; </script>"));
        }

        protected bool RowHighLight
        {
            get { return this.CBool(Application["RowHighLight"]); }
        }
    }
}